#!/bin/bash
case $1 in
start)
  zk start
  hadoop.sh start
  sleep 5
  kafka.sh start
  maxwell.sh start
  start-hbase.sh
  flume.sh start
  sudo systemctl start clickhouse-server
  sudo redis-server /etc/redis.conf
  /opt/module/flink-1.13.6/bin/yarn-session.sh -d
  queryserver.py start
  #	maxwell.sh stop
  #	maxwell.sh start

  ;;

stop)
  queryserver.py stop
  redis.sh stop
  sudo systemctl stop clickhouse-server
  maxwell.sh stop
  flume.sh stop
  stop-hbase.sh
  kafka.sh stop
  sleep 5
  hadoop.sh stop
  zk stop
  ;;
*)
  echo "mycluster.sh start|stop"
  exit
  ;;
esac
